package com.yfp.goods.domain.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yfp.common.core.text.BigDecimalSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 团餐 套餐传输类
 *
 *
 * @since 2023-12-27 13:33:24
 */
@Data
@Schema(title = "套餐")
public class ComboGroupDTO implements Serializable {

    private static final long serialVersionUID = -1257492438336533347L;

    /**
     * 套餐id
     */
    @Schema(title = "套餐id")
    private String comboId;
    /**
     * 套餐名称
     */
    @Schema(title = "套餐名称")
    private String name;

    /**
     * 缩略图
     */
    @Schema(title = "缩略图")
    private String thumb;

    /**
     * 缩略图
     */
    @Schema(title = "缩略图")
    private String thumbUrl;

    /**
     * 小程序价格
     */
    @Schema(title = "小程序价格")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal miniPrice;

    /**
     * 会员价
     */
    @Schema(title = "会员价")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal vipPrice;

    /**
     * 成本价
     */
    @Schema(title = "成本价")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal costPrice;

    /**
     * 套餐价格
     */
    @Schema(title = "套餐价格")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal salePrice;

}

